<template>
<div class="container-big display-active-page">
  <div class="display-active-box">
     <img
      src="https://img.alicdn.com/tfs/TB1QDDFIxjaK1RjSZKzXXXVwXXa-690-903.png"
      class="ucan-ticket-bg"
    >
    <h1 class="display-active-title">展会票</h1>
    <p class="display-active-desc"> 时间：4月27日、28日 09:00~17:30</p>
    <p class="display-active-desc">地点：杭州国际博览中心  展览区4层</p>

    <p class="display-qrcode-desc">扫码核验入场</p>
    <img :src="qrcode" class="display-qrcode-image" />
    <div class="divider"></div>
    <p class="display-tip-title">截图保存此页面</p>
    <p class="display-tip-desc">
      展会现场需出示此凭证核验入场
    </p>
  </div>
</div>
</template>
<script>
import jrQrcode from 'jr-qrcode';
export default {
  data() {
    return {
      qrcode: '',
    }
  },
  mounted() {
    const { phone } = this.$route.params;
    this.qrcode = jrQrcode.getQrBase64(phone, {
      width: 210,
      height: 210
    });
  }
};
</script>

<style lang="less">
.display-active-page {
  padding: 30px;
  .display-active-box {
    padding: 36px 24px;
    position: relative;
    z-index: 1;
    text-align: left;
    color: #fff;
    text-align: center;
    .ucan-ticket-bg {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }
  }

  .display-active-title {
    margin-top: 90px;
    margin-bottom: 28px;
    font-size: 40px;
  }

  .display-active-desc {
    font-size: 28px;
    margin-top: 12px;
  }

  .display-qrcode-desc {
    font-size: 20px;
    margin-top: 58px;
    margin-bottom: 25px;
  }

  .display-qrcode-image {
    width: 210px;
    height: 210px;
    border: none;
  }

  .divider {
    height: 1px; /* no */
    border-bottom: 1px dotted #979797;  /* no */
    margin-top: 66px;
    margin-bottom: 48px;
  }

  .display-tip-title {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
  }

  .display-tip-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    margin-top: 16px;
  }
}
</style>
